<?php
use Workerman\Worker;
class indexCon{
	function index(){
        $a='变量';
        p(dirname(__DIR__));
        include showTpl();
	}
	function ces(){
        $http_worker = new Worker("websocket://0.0.0.0:15520");
        $http_worker->count = 1;
        $http_worker->onWorkerStart  = function($worker)
        {
            \Workerman\Lib\Timer::add(1, function ()use($worker) {
                echo '123';
            });
        };
		Worker::runAll();
	}
}